package com.byd.base;

public abstract class ChildFragment extends BaseFragment {
	private ParentFragment mParentFragment;

	void setParentFragment(ParentFragment fragment) {
		mParentFragment = fragment;
	}

	public void addChildFragment(Class<? extends ChildFragment> cls) {
		mParentFragment.addChildFragment(cls);
	}

	public void addChildFragment(ChildFragment fragment) {
		mParentFragment.addChildFragment(fragment);
	}
}
